﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    public class RoleInfoDAL : BaseDeleteDAL<RoleInfo>, IRoleInfoDAL
    {
        private UnmanContexts _dbContext;
        public RoleInfoDAL(UnmanContexts dbContex) :base(dbContex)
        {
            _dbContext = dbContex;
        }

        /// <summary>
        /// 获取角色表的所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<RoleInfo> GetRoleInfo()
        {
            //RepositorySysd _dbContext = new RepositorySysd();
            return _dbContext.RoleInfo;
        }


    }
}
